{% extends "reg6/reg.html" %}
{% load i18n %}
{% load reg6_filters %}
{% block content %}
<div id="content-main">

{% if search %}
    <p>
    Search results for:<br />
    First name: {{ first|escape }}<br />
    Last name: {{ last|escape }}<br />
    Email: {{ email|escape }}<br />
    Zip: {{ zip|escape }}<br />
    </p>
{% endif %}

{% if attendees %}
    <table border="1">
    <thead>
    <tr>
        <th>Registration Number</th>
        <th>Name</th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    {% for person in attendees %}
        <tr>
        <td>{{ person.id|escape }}</td>
        <td>{{ person.first_name|escape }} {{ person.last_name|escape }}</td>
        <td>
        <form method="post" action="../finish_checkin/">
        <input type="hidden" name="id" value="{{ person.id|escape }}">
        <input type="submit" value="Check Me In">
        </form>
        </td>
        </tr>
    {% endfor %}
    </tbody>
    </table>
{% endif %}

{% if search %}
    <hr />
{% endif %}

<p>
Please type in your registration information:
</p>

<p>
<form method="post" action=".">
<table>
<tr>
    <td>First Name</td>
    <td><input type="text" name="first" maxlength="60" size="40"
      value="{{ first|escape }}" /></td>
</tr>
<tr>
    <td>Last Name</td>
    <td><input type="text" name="last" maxlength="60" size="40"
      value="{{ last|escape }}" /></td>
</tr>
<tr>
    <td>Email</td>
    <td><input type="text" name="email" maxlength="75" size="40"
      value="{{ email|escape }}" /></td>
</tr>
<tr>
    <td>Zip Code</td>
    <td><input type="text" name="zip" maxlength="10" size="10"
      value="{{ zip|escape }}" /></td>
</tr>
</table>
<input type="submit"
{% if search %}
value="Search Again"
{% else %}
value="Search"
{% endif %}
/>
</form>
</p>
</div>
{% endblock %}

